import time 
def Bubble_sort(nums):

    ZARODINU = True
    while ZARODINU :
        ZARODINU = False
        for i in range (len(nums) - 1 ):
            if nums [i] > nums [ i + 1 ]:
                nums [i] , nums [i + 1] = nums [i + 1 ],  nums [i]
                ZARODINU = True
def read2list(filename):
    file = open (filename, 'r')
    data = file.readlines()
    return date
z= read2list("z_sorted.txt")
o= read2list("o_reverse.txt")
v= read2list("v_shiffile.txt")

t_start= time.time()
Bubble_sort (z)
t_finish = time.time() 
print ("время" , round ((t_finish-t_start)*1000))

t_start= time.time()
Bubble_sort (o)
t_finish = time.time() 
print ("время" , round ((t_finish-t_start)*1000))

t_start= time.time()
Bubble_sort (v)
t_finish = time.time() 
print ("время" , round ((t_finish-t_start)*1000))
